<?php

/**
 * Created by PhpStorm.
 * User: 志俊
 * Date: 2015/5/14 0014
 * Time: 16:13
 */
class System_blog extends CI_Controller
{
    function __construct()
    {
        parent::__construct();
    }

    /*显示日志信息 2015-5-14*/
    function show_blog_list()
    {
        $page = $this->input->post("page");
        $limit = $this->input->post("limit");
        //模型操作,显示系统日志列表
        $this->load->model('Systemblog_model', 'system_blog', TRUE);
        $data = $this->system_blog->show_blog_list($page, $limit);
        echo json_encode($data);
    }

    /*删除日志信息 2015-5-14*/
    function delete_system_blog()
    {
        $Id = $this->input->post("Id");
        $this->load->model('Systemblog_model', 'system_blog', TRUE);
        $data = $this->system_blog->delete_system_blog($Id);
        echo json_encode($data);
    }
}